range: No need to update mouse location when starting a drag
authorBenjamin Otte <otte@redhat.com>
Sat, 29 Nov 2014 02:18:50 +0000 (03:18 +0100)
committerBenjamin Otte <otte@redhat.com>
Sat, 29 Nov 2014 02:42:28 +0000 (03:42 +0100)
The mouse position doesn't change here. Plus, all callers have just
updated it anyway.

gtk/gtkrange.c

index 3b6def5f4fdd9769da7a4b7a8bc94d249267f505..4420140a030dd6b57a8ee2aa512e6ad323157bf8 100644 (file)
@@ -2253,9 +2253,6 @@ range_grab_add (GtkRange      *range,
    */
   priv->grab_location = location;
 
-  if (gtk_range_update_mouse_location (range))
-    gtk_widget_queue_draw (GTK_WIDGET (range));
-
   gtk_style_context_add_class (context, "dragging");
 }